using Gateway.Infrastructure.AutoDI;
using Gateway.IQuery.Cache.Request;
using Gateway.IQuery.Cache.Result;

namespace Gateway.IQuery.Cache;

/// <summary>
/// 缓存查询服务
/// </summary>
public interface ICacheQuery : IDependency
{
    /// <summary>
    /// 获取列表
    /// </summary>
    /// <returns></returns>
    Task<List<CacheDetailResult>> GetList();

    /// <summary>
    /// 获取明细列表
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    Task<List<CacheDetailResult>> GetDetailList(CacheDetailRequest request);
    /// <summary>
    /// 获取详情
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    Task<CacheDetailResult> GetDetail(CacheDetailRequest request);
}